package rsb21424yhc.d1104;

public abstract class Animal {
    protected String name;

    public Animal(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected void eat(Food food){
        System.out.println(this.name+"eating"+food.getName());
    }
    protected  abstract void shout();

}

